package org.sample.mqtt.component.model;

import io.protostuff.Tag;

public abstract class MqttResponse {

    /** 应答消息流水号 */
    @Tag(1)
    protected long responseSerialNo;

    /** 设备ID */
    @Tag(2)
    protected String deviceId;

    public MqttResponse() {
    }

    public MqttResponse(long responseSerialNo, String deviceId) {
        this.responseSerialNo = responseSerialNo;
        this.deviceId = deviceId;
    }

    public long getResponseSerialNo() {
        return responseSerialNo;
    }

    public void setResponseSerialNo(long responseSerialNo) {
        this.responseSerialNo = responseSerialNo;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
}